package com.example.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.seckill.domain.UserInfo;
import com.example.seckill.service.model.UserModel;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.Size;

/**
 *
 */
public interface UserInfoService extends IService<UserInfo> {

    UserModel getUserById(Integer id);

    void register(@Validated UserModel convertFromDTO);

    UserModel validateLogin(String telphone, String encryptPassword);

}
